package com.sskj.hangqing.bean;

import com.sskj.common.util.LanguageUtil;
import com.sskj.lib.util.TimeFormatUtil;

import java.util.Date;

public class NoticeBean {

    /**
     * id : 1
     * userId : null
     * title : 随便
     * details : 随便随便随便
     * createTime : 1561368636000
     * isDeleted : false
     * timestamp : 1561368702000
     */

    private String id;
    private Object userId;
    private String title;
    private String titleUS;
    private String detailsUS;
    private String detailsCN;
    private long createTime;
    private boolean isDeleted;
    private long timestamp;

    public String getTitleUS() {
        return titleUS;
    }

    public void setTitleUS(String titleUS) {
        this.titleUS = titleUS;
    }

    public String getDetailsUS() {
        return detailsUS;
    }

    public void setDetailsUS(String detailsUS) {
        this.detailsUS = detailsUS;
    }

    public String getDetailsCN() {
        return detailsCN;
    }

    public void setDetailsCN(String detailsCN) {
        this.detailsCN = detailsCN;
    }

    public boolean isDeleted() {
        return isDeleted;
    }

    public void setDeleted(boolean deleted) {
        isDeleted = deleted;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Object getUserId() {
        return userId;
    }

    public void setUserId(Object userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return LanguageUtil.isSimpleChinese() ? title : titleUS;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDetails() {
        return LanguageUtil.isSimpleChinese() ? detailsCN : detailsUS;
    }


    public String getCreateTime() {
        return TimeFormatUtil.SF_FORMAT_F.format(new Date(Long.valueOf(createTime)));
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public boolean isIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
}
